<%= form_for [:admin, @seckill_spu], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">
      审批
    </h3>
    <div class="row">
      <div class="col-md-6">
        <div class="form-group">
          <label class="form-label">参与商品</label>
          <input type="text" value="<%= @seckill_spu.spu.name %>" class="form-control" disabled>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <label class="form-label">限时购价格</label>
          <input type="text" value="<%= @seckill_spu.seckill_price %>" class="form-control" disabled>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <label class="form-label">开始时间</label>
          <input type="text" value="<%= formattime(@seckill_spu.start_at, unit: "hour") %>" class="form-control" disabled>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <label class="form-label">结束时间</label>
          <input type="text" value="<%= formattime(@seckill_spu.end_at, unit: "hour") %>" class="form-control" disabled>
        </div>
      </div>
      <div class="col-md-6">
        <div class="form-group">
          <label class="form-label">审批</label>
          <div class="custom-controls-stacked">
            <label class="custom-control custom-radio custom-control-inline">
              <input type="radio" name="seckill_spu[state]" class="custom-control-input" value="approve" />
              <span class="custom-control-label">批准</span>
            </label>
            <label class="custom-control custom-radio custom-control-inline">
              <input type="radio" name="seckill_spu[state]" class="custom-control-input" value="refuse" /> 
              <span class="custom-control-label">拒绝</span>
            </label>
          </div>
        </div>
      </div>
      
    </div>
  </div>
  <div class="card-footer text-right">
    <%= f.submit "保 存", class: "btn btn-primary" %>
  </div>
<% end %>